package com.sixteengroup.personnelms.service.normalstaff;

import com.sixteengroup.personnelms.bean.RegUser;
import com.sixteengroup.personnelms.bean.to.Cultivate;
import com.sixteengroup.personnelms.bean.to.RegSalary;
import com.sixteengroup.personnelms.dao.normalstaff.RegDao;
import com.sixteengroup.personnelms.dao.portal.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 *
 *@auth  biewenzhao
 *@date 2021/8/18  18:50
 */

@Service
public class RegService {
    @Autowired
    RegDao regDao;

    public List<RegSalary> getSararylimit(int id) {
      return   regDao.getSararylimit(id);
    }

    public void updateUserInfo(RegUser regUser) {
        regDao.updateUserInfo(regUser);
    }

    public List<Cultivate> getCulvate(int id) {
        return  regDao.getCulvate(id);
    }

    public void killArticle(Integer rowid, String rowstatus) {
        regDao.killArticle(rowid,rowstatus);
    }

    public RegUser findUserList(int id) {
        return  regDao.findUserList(id);
    }
}
